package com.zgt.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zgt.dao.SettingDao;
import com.zgt.model.Setting;
import com.zgt.service.SettingService;

@Service("settingService")
public class SettingServiceImpl implements SettingService {
	private SettingDao settingDao;

	public SettingDao getSettingDao() {
		return settingDao;
	}

	@Resource(name="settingDao")
	public void setSettingDao(SettingDao settingDao) {
		this.settingDao = settingDao;
	}

	public void saveSetting(Setting setting) {
		settingDao.saveSetting(setting);

	}

	public Setting listSetting(int id) {
		return settingDao.listSetting(id);
	}

}
